package com.luobinjie.svt.controller;

import com.luobinjie.svt.bean.Dept;
import com.luobinjie.svt.common.bean.WebResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@RestController("/business/dept")
@Validated
public class DeptController {

    @PostMapping
    public WebResult add(@RequestBody(required = false) @Valid @NotNull Dept dept){
        return WebResult.success();
    }

}
